package nccloud.pubimpl.so.delivery.operator;

import nc.vo.so.m4331.entity.DeliveryVO;
import nccloud.dto.scmpub.pub.event.rule.AbstractHeadAfterHandler;
import nccloud.dto.scmpub.pub.event.rule.IHeadAfterRule;
import nccloud.pubimpl.so.delivery.event.head.CustomerAfterRule;
import nccloud.pubimpl.so.delivery.event.head.OrgAfterRule;
import nccloud.pubimpl.so.delivery.event.head.SendEmployeeAfterRule;
import nccloud.pubimpl.so.delivery.event.head.TradeWordAfterRule;
import nccloud.pubimpl.so.delivery.event.head.TrantypeAfterRule;

public class DeliveryHeadEventHandler extends AbstractHeadAfterHandler {
	protected IHeadAfterRule getAfterRule(String changeKey) {
		IHeadAfterRule<DeliveryVO> rule = null;
		if ("ctradewordid".equals(changeKey)) {
			rule = new TradeWordAfterRule();
		} else if ("csendemployeeid".equals(changeKey)) {
			rule = new SendEmployeeAfterRule();
		} else if ("pk_org_v".equals(changeKey)) {
			rule = new OrgAfterRule();
		} else if ("ctrantypeid".equals(changeKey)) {
			rule = new TrantypeAfterRule();
		} else if ("vdef21".equals(changeKey)) {
			rule = new CustomerAfterRule();
		}
		return rule;
	}
}
